import { UserMenu } from '@/api/common/types'

export type LoginForm = {
  username: string
  password: string
}

export type LoginUser = {
  id: string
  username: string
}

export type UserState = {
  token?: string | null
  user?: LoginUser
  roles: string[]
  permissions: string[]
  menus: UserMenu[]
  cacheMenus: Record<string, number>
}
//
// export type UserMenu = {
//   component: string
//   hidden: 0 | 1
//   icon?: string
//   id: string
//   name: string
//   parentId: string
//   path: string
//   target?: number
//   children: UserMenu[]
// }
